package top.lishuoboy.hibernate.validator.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.validation.annotation.Validated;
import top.lishuoboy.hibernate.validator.model.SysUser;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author lishuoboy
 * @description 针对表【sys_user(用户)】的数据库操作Service
 * @createDate 2024-10-24 14:00:37
 */
@Validated
public interface SysUserService extends IService<SysUser> {

    SysUser save2(/*@Valid*/ SysUser sysUser);

    SysUser updateById2(/*@Valid*/ SysUser sysUser);

    SysUser getById2(@NotNull @Min(0) Integer id);

}
